<?php
	@session_start();
	include_once 'config.php';
	include_once 'functions.php';
	if (isset($_REQUEST['login'])) {
		if (check_login($_REQUEST['password'])) {
			header("Location: index.php");
		}
	}
?>
<form>
	<fieldset>
		<legend>Admin</legend>
		Password: <input type="password" name="password" /><br />
		<input type="submit" name="login" value="Login" />
	</fieldset>
</form>